package com.burns.flash.javafx.stage;/**
 * Created by burns.
 *
 * @author <a href="http://www.esoon-soft.com/">burns</a>
 * @date 2022/02/21 11:09
 */

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;

public class HelloJavaFx extends Application {

    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage primaryStage) {
        primaryStage.setTitle("Hello JavaFx");


        VBox vBox = new VBox(new Label("A JavaFX Label"));
        Scene scene = new Scene(vBox);

        Stage stage = new Stage();
        stage.setTitle("another stage");
        stage.setX(50);
        stage.setY(50);
        stage.setWidth(600);
        stage.setHeight(300);
        stage.setScene(scene);
        stage.show();

        primaryStage.show();
    }
}
